package com.hbjycl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hbjycl.dao.TreeDao;
import com.hbjycl.entity.Student;
import com.hbjycl.entity.Teacher;
import com.hbjycl.entity.Tree;
import com.hbjycl.service.TreeService;

@Service
public class TreeServiceImpl extends BaseServiceImpl<Tree, String> implements TreeService
{
    @Resource
    private TreeDao treeDao;
    
    @Resource
    public void setBaseDao(TreeDao treeDao)
    {
        super.setBaseDao(treeDao);
    }
	  @Override
	    public boolean isExistByTid(String tid)
	    {
	        return treeDao.isExistByTid(tid);
	    }
	    
	    @Override
	    public Tree getTreeByTid(String tid)
	    {
	        return treeDao.getTreeByTid(tid);
	    }
	    
	    @Override
	    public Tree getTreeByPid(String pid)
	    {
	        return treeDao.getTreeByPid(pid);
	    }
	    @Override
	    public List<Tree> getTreeByTidPnameName(String tid,String pname,String name)
	    {
	    	return treeDao.getTreeByTidPnameName(tid,pname,name);
	    };
}
